home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Software für Mac-OS X / Entwickler-Tools / netbeans / modules / ext / djava.jar / koala / dynamicjava / tree / SynchronizedStatement.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-14  |  1.6 KB  |  51 lines

  1. package koala.dynamicjava.tree;
  2.  
  3. import koala.dynamicjava.tree.visitor.Visitor;
  4.  
  5. public class SynchronizedStatement extends Statement {
  6.    public static final String LOCK = "lock";
  7.    public static final String BODY = "body";
  8.    private Expression lock;
  9.    private Node body;
  10.  
  11.    public Expression getLock() {
  12.       return this.lock;
  13.    }
  14.  
  15.    public void setLock(Expression var1) {
  16.       if (var1 == null) {
  17.          throw new IllegalArgumentException("e == null");
  18.       } else {
  19.          ((Node)this).firePropertyChange("lock", this.lock, this.lock = var1);
  20.       }
  21.    }
  22.  
  23.    public Node getBody() {
  24.       return this.body;
  25.    }
  26.  
  27.    public void setBody(Node var1) {
  28.       if (var1 == null) {
  29.          throw new IllegalArgumentException("node == null");
  30.       } else {
  31.          ((Node)this).firePropertyChange("body", this.body, this.body = var1);
  32.       }
  33.    }
  34.  
  35.    public Object acceptVisitor(Visitor var1) {
  36.       return var1.visit(this);
  37.    }
  38.  
  39.    public SynchronizedStatement(Expression var1, Node var2, String var3, int var4, int var5, int var6, int var7) {
  40.       super(var3, var4, var5, var6, var7);
  41.       if (var1 == null) {
  42.          throw new IllegalArgumentException("lock == null");
  43.       } else if (var2 == null) {
  44.          throw new IllegalArgumentException("body == null");
  45.       } else {
  46.          this.lock = var1;
  47.          this.body = var2;
  48.       }
  49.    }
  50. }
  51.